package com.one.entity;

public class Order {
    //订单的编号
    private int order_id;
    //客户的名单
    private int user_id;
    //家政人员的编号
    private int hk_id;
    //服务的编号
    private int server_id;
    //服务的时间
    private double server_time;
    //客户的联系方式
    private String customer_tel;
    //订单的地址
    private String order_address;
    //订单的开始时间
    private String start_time;
    //订单的结束时间
    private String finish_time;
    //用户打分
    private int order_score;
    //订单的金额
    private double order_price;
    //订单的状态 0-未开始 1-正在进行 2-已结束
    private int order_status;
    //支付的状态 0-未支付，1-已支付，2-已过期
    private int pay_status;
    //订单的用户信息
    private User user;
    //订单的家政信息
    private Housekeeping hk;

    //空的构造方法
    public Order() {
    }

    //一般的构造方法
    public Order(int order_id, int user_id, int hk_id, int server_id, double server_time, String customer_tel, String order_address, String start_time,
                 String finish_time, int order_score, double order_price, int order_status, int pay_status) {
        this.order_id = order_id;
        this.user_id = user_id;
        this.hk_id = hk_id;
        this.server_id = server_id;
        this.server_time = server_time;
        this.customer_tel = customer_tel;
        this.order_address = order_address;
        this.start_time = start_time;
        this.finish_time = finish_time;
        this.order_score = order_score;
        this.order_price = order_price;
        this.order_status = order_status;
        this.pay_status = pay_status;
    }

    //信息的封装
    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getHk_id() {
        return hk_id;
    }

    public void setHk_id(int hk_id) {
        this.hk_id = hk_id;
    }

    public int getServer_id() {
        return server_id;
    }

    public void setServer_id(int server_id) {
        this.server_id = server_id;
    }

    public double getServer_time() {
        return server_time;
    }

    public void setServer_time(double server_time) {
        this.server_time = server_time;
    }

    public String getCustomer_tel() {
        return customer_tel;
    }

    public void setCustomer_tel(String customer_tel) {
        this.customer_tel = customer_tel;
    }

    public String getOrder_address() {
        return order_address;
    }

    public void setOrder_address(String order_address) {
        this.order_address = order_address;
    }

    public String getStart_time() {
        return start_time;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }

    public String getFinish_time() {
        return finish_time;
    }

    public void setFinish_time(String finish_time) {
        this.finish_time = finish_time;
    }

    public int getOrder_score() {
        return order_score;
    }

    public void setOrder_score(int order_score) {
        this.order_score = order_score;
    }

    public double getOrder_price() {
        return order_price;
    }

    public void setOrder_price(double order_price) {
        this.order_price = order_price;
    }

    public int getOrder_status() {
        return order_status;
    }

    public void setOrder_status(int order_status) {
        this.order_status = order_status;
    }

    public int getPay_status() {
        return pay_status;
    }

    public void setPay_status(int pay_status) {
        this.pay_status = pay_status;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Housekeeping getHk() {
        return hk;
    }

    public void setHk(Housekeeping hk) {
        this.hk = hk;
    }
}
